<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Carbon;

/**
 * App\Models\Flow
 *
 * @property int $id
 * @property float $money 金额
 * @property string $type 流水类型：1：订单；2：分润；3：提现；4：退款。
 * @property int $user_id 用户id
 * @property int $business_id 相应的业务id，如订单id、返利id、提现id、退款id。
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereBusinessId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Flow whereUserId($value)
 * @mixin \Eloquent
 */
class Flow extends Model
{
    use SoftDeletes;
    protected $fillable = ['money','type','user_id','business_id','user_mobile'];
}
